<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;
use api\user\controller\SelectController;

class Biao8Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = $data[0]['content'];
        if (empty($new_data)) {
            return '';
        }
       $html = '
                <div style="width: 650px;margin: 0 auto;">
                    <div>
                        <p style="float: left;">编　　号: <span style="border-bottom: 1px solid #000;display:inline-block;width: 200px;"></span></p>
                        <p style="float: right;">专题编号: <span style="border-bottom: 1px solid #000;display:inline-block;width: 200px;"></span></p>
                        <div style="clear: both;"></div>
                    </div>
                    <div>
                        <p style="float: left;">技术领域: <span style="border-bottom: 1px solid #000;display:inline-block;width: 200px;"></span></p>
                        <p style="float: right;">专题名称: <span style="border-bottom: 1px solid #000;display:inline-block;width: 200px;"></span></p>
                        <div style="clear: both;"></div>
                    </div>
                    <div style="font-size: 22px;font-weight: 600;margin-top: 15px; text-align: center">广东省科技计划项目</div>
                    <div style="font-size: 32px;font-weight: 600;margin-top: 15px; text-align: center">申 报 书</div>
                    <div style="font-size: 18px;font-weight: 600;margin-top: 15px; text-align: center">广东省科技计划项目</div>
                    <p style="margin-top: 50px"><span style="display:inline-block;width: 120px;">项目名称：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text1.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">专项资金类别：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text2.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">业务类型：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text3.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">申请单位：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text4.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">通讯地址：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text5.'</span></p>
                    <p>
                        <span style="display:inline-block;width: 120px;">邮政编码：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;">'.@$new_data->text6.'</span>
                        <span style="display:inline-block;width: 90px;">单位电话：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;">'.@$new_data->text7.'</span>
                        <span style="display:inline-block;width: 60px;">传真：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 110px;">'.@$new_data->text8.'</span>
                    </p>
                    <p>
                        <span style="display:inline-block;width: 120px;">项目负责人：'.@$new_data->text9.'</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;"></span>
                        <span style="display:inline-block;width: 90px;">联系电话：'.@$new_data->text10.'</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;"></span>
                        <span style="display:inline-block;width: 60px;">手机：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 110px;">'.@$new_data->text11.'</span>
                    </p>
                    <p>
                        <span style="display:inline-block;width: 120px;">项目联系人：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;">'.@$new_data->text12.'</span>
                        <span style="display:inline-block;width: 90px;">联系电话：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 120px;">'.@$new_data->text13.'</span>
                        <span style="display:inline-block;width: 60px;">手机：</span>
                        <span style="border-bottom: 1px solid #000;display:inline-block;width: 110px;">'.@$new_data->text14.'</span>
                    </p>
                    <p><span style="display:inline-block;width: 120px;">电子邮箱：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text15.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">县（区）主管：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text16.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">推荐单位：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text17.'</span></p>
                    <p><span style="display:inline-block;width: 120px;">申报日期：</span><span style="border-bottom: 1px solid #000;display:inline-block;width: 530px;">'.@$new_data->text18.'</span></p>
                    <div style="text-align: center;font-weight: 700; margin-top: 50px;">广东省科学技术厅</div>
                    <div style="text-align: center;font-weight: 700; ">二零一四年一月制</div>
                </div>
            ';

            return $html;

    }



}
